/*
 * SAMainView.h
 *
 *  Created on: 2010-06-04
 *      Author: NONO
 */

#ifndef __SAMAINVIEW_H__
#define __SAMAINVIEW_H__

// INCLUDES
#include <aknview.h>

// FORWARD DECLARATIONS
class CSAMainContainer;


// CLASS DECLARATION
class CSAMainView : public CAknView
{
public:
    void ConstructL();
    ~CSAMainView();

public: // Functions from base classes
    TUid Id() const;
    void HandleCommandL(TInt aCommand);
    void HandleClientRectChange();
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
    void RedrawNow();
    void WhetherInitSetup();

private:
    void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, const TDesC8& aCustomMessage);
    void DoDeactivate();

private: // Data
    CSAMainContainer*   iContainer;
    TBool               iIsRemoteCode;
    // modified by Sandy 2008-2-29
    TBool               iIsRuntimePasswordProtection;
    TBool               iIsNotificationSimChg;
    //
    TBool               iFirstTime;
    TBool               iClearKey;
};

#endif /* __SAMAINVIEW_H__ */
